package com.hongye.proprietary.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hongye.common.utils.PageUtils;
import com.hongye.common.utils.Query;
import com.hongye.proprietary.dao.CommentHomeDao;
import com.hongye.proprietary.entity.CommentHomeEntity;
import com.hongye.proprietary.service.CommentHomeService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("commentHomeService")
public class CommentHomeServiceImpl extends ServiceImpl<CommentHomeDao, CommentHomeEntity> implements CommentHomeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CommentHomeEntity> page = this.page(
                new Query<CommentHomeEntity>().getPage(params),
                new QueryWrapper<CommentHomeEntity>()
        );

        return new PageUtils(page);
    }

}